<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
		<title>歪风阅读</title>
		<link rel="shortcut icon" th:href="@{/picture/favicon.ico}"/>
		<link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.min.css}"/>
		<link rel="stylesheet" type="text/css" th:href="@{/css/auth/auth-base.css}"/>
		<script th:src="@{/js/jquery-3.4.1.min.js}" type="text/javascript" charset="utf-8"></script>
		<script th:src="@{/js/bootstrap.min.js}" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" th:src="@{/js/auth/author_center.js}"></script>
</head>
<body>
<div class="container">
		<div class="row clearfix">
				<div class="col-md-12 column">
						<div class="row clearfix">
								<div class="col-md-12 column">
										<nav class="navbar navbar-default navbar-static-top navbar-inverse"
										     role="navigation">
												<div class="navbar-header">
														<button type="button" class="navbar-toggle"
														        data-toggle="collapse"
														        data-target="#bs-example-navbar-collapse-1">
																<span class="sr-only">Toggle navigation</span>
																<span class="icon-bar"></span>
																<span class="icon-bar"></span>
																<span class="icon-bar"></span>
														</button>
														<a class="navbar-brand" th:href="@{/index}">歪风阅读</a>
												</div>

												<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
														<ul class="nav navbar-nav">
																<li class="active">
																		<a th:href="@{/auth/authorUI}">首页</a>
																</li>
																<li>
																		<a href="#">Link</a>
																</li>
														</ul>
														<form class="navbar-form navbar-left" style="margin-left: 200px"
														      role="search">
																<div class="form-group">
																		<input type="text" class="form-control"
																		       placeholder="搜索你的作品"/>
																</div>
																<button type="search" class="btn btn-default">搜索
																</button>
														</form>
														<ul class="nav navbar-nav navbar-right"
														    style="margin-right: 30px;">

																<li th:if="${session.user_auth!=null}">
																		<img th:if="${session.user_auth.headImage==null}"
																		     th:src="@{/picture/default_user.png}"
																		     alt="404" class="headimag">
																		<img th:if="${session.user_auth.headImage!=null}"
																		     class="headimage"
																		     th:src="@{'/auth-photo/'+${session.user_auth.nickName}+'/'+${session.user_auth.headImage}}"
																		     alt="404">
																</li>
																<li th:if="${session.user_auth!=null}">
																		<a href="">[[${session.user_auth.nickName}]]</a>
																</li>
																<li th:if="${session.user_auth!=null}">
																		<a th:href="@{/loginAndRegist/loginout}">注销</a>
																</li>

																<li th:if="${session.user_auth==null}">
																		<a th:href="@{/loginAndRegist/login}">登录</a>
																</li>
																<li th:if="${session.user_auth==null}">
																		<a th:href="@{/loginAndRegist/regist}">成为作家</a>
																</li>
														</ul>
												</div>

										</nav>
								</div>
						</div>
						<div class="row clearfix">
								<div class="col-md-12 column">
										<div class="tabbable" id="tabs-510506">
												<ul class="nav nav-tabs">
														<li>
																<a href="#panel-796791" data-toggle="tab">密码</a>
														</li>
														<li class="active">
																<a href="#panel-218110" data-toggle="tab">头像</a>
														</li>
												</ul>
												<div class="tab-content">
														<div class="tab-pane" id="panel-796791">

																<div>
																		<div class="form-group"><span id="pwd_erro" style="color: red"></span></div>
																		<div class="form-group">
																				<label for="inputSuccess1">旧密码:</label><input type="password" name="old_pwd" id="inputSuccess1">
																		</div>
																		<div class="form-group">
																				<label for="inputSuccess2">新密码:</label><input type="password" name="new_pwd" id="inputSuccess2">
																		</div>
																		<div class="form-group">
																				<label for="inputSuccess3">确认密码:</label><input type="password" name="cfm_pwd" id="inputSuccess3">
																		</div>
																		<div >
																				<button class="btn-success" id="btn_pwd">修改</button>
																		</div>
																</div>

														</div>
														<div class="tab-pane active" id="panel-218110">

																<div class="form-group">
																		<img th:if="${session.user_auth.headImage==null}" th:src="@{/picture/default_user.png}" alt="404" class="big_headimage" style="width: 180px;height: 180px;border-radius: 50%;">
																		<img th:if="${session.user_auth.headImage!=null}" th:src="@{'/auth-photo/'+${session.user_auth.nickName}+'/'+${session.user_auth.headImage}}" alt="404" class="big_headimage" style="width: 180px;height: 180px;border-radius: 50%;">
																</div>
																<div class="form-group">
																		<label for="imgInput">头像上传</label>
																		<input type="file" id="imgInput"><br>
																		<p class="help-block"><button class="btn-success" id="img_up_btn">上传</button></p>
																</div>

														</div>
												</div>
										</div>
								</div>
						</div>
				</div>
		</div>
</div>
</body>
</html>